package com.smart.lab.utils.net;

/**
 * Created by liuyan on 2019/2/28.
 */

import android.util.Log;

public class L {
    public static boolean isDebug = false;
    private static final String TAG = "TAG_RETROFIT";

    public L() {
    }

    public static void i(String tag, String message) {
        if(isDebug) {
            Log.i(tag, message);
        }

    }

    public static void i(String message) {
        i("TAG_RETROFIT", message);
    }

    public static void e(String tag, String message) {
        if(isDebug) {
            Log.e(tag, message);
        }

    }

    public static void e(String message) {
        e("TAG_RETROFIT", message);
    }

    public static void e(String tag, String message, Throwable e) {
        if(isDebug) {
            Log.e(tag, message, e);
        }

    }

    public static void e(String tag, Throwable e) {
        e(tag, "", e);
    }

    public static void e(Throwable e, String message) {
        e("TAG_RETROFIT", message, e);
    }

    public static void e(Throwable e) {
        e("TAG_RETROFIT", "", e);
    }
}
